<template>
  <div class="unit-index sub-margin">
    <!-- <div class="sub-page-title">纪实本</div> -->
    <div class="content">
      <div class="left-con">
        <OrgPersonList @getPerson="getPerson" />
      </div>
      <div class="right-con">
        <div class="table-con">
          <Documentary ref="rightDocument" />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Documentary from './components/Documentary'
import OrgPersonList from './components/OrgPersonList'
export default {
  name: 'indexList',
  components: { Documentary, OrgPersonList },
  data() {
    return {
      menuInfo: {
        all: {
          label: '周纪实',
          num: 0,
          status: '0',
        },
        reporting: {
          label: '月小结',
          num: 0,
          status: '1',
        },
        reported: {
          label: '季度总结',
          num: 0,
          status: '2',
        },
      },
      activeCode: 'all',
      keyWords: '',
      pageNum: 1,
      pageSize: 10,
      totalSize: 0,
      tableList: [],
    }
  },
  created() {},
  methods: {
    // 获取人员id
    getPerson(userId, noteId) {
      this.$refs.rightDocument.getData(userId, noteId)
    },
  },
}
</script>
<style lang="scss" scoped>
@import '@styles/layout.scss';
.unit-index {
  height: 100%;
  .content {
    flex: 1;
    display: flex;
    align-items: stretch;
    padding: 20px 0;
    // height: calc(100% - 80px);
    height: calc(100%);
    overflow: hidden;
    .left-con {
      max-width: 380px;
      height: 100%;
      overflow: auto;
      position: relative;
      // border-right: 1px solid #e4eaf0;
    }
    .right-con {
      flex: 1;
      width: 100%;
      max-width: 1400px;
      height: 100%;
      margin: 0 auto;
      margin-left: 20px;
      position: relative;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      .table-con {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        .bg-pagination {
          margin-top: 10px;
        }
      }
    }
  }
}
</style>
